import { fromJS } from 'immutable'
import * as constant from './constant'
const defaultState = fromJS({
    mouseIn: false
})
export default ((state= defaultState, action) => {
   switch ( action.type ){
       case constant.CHANGE_MOUSE_IN:
       return state.set('mouseIn', true)
       case constant.CHANGE_MOUSE_OUT:
       return state.set('mouseIn', false)
       default:
       return state;
   }
})